package com.ys.entity.business;

import javax.persistence.Table;


import java.util.Date;

import com.ys.entity.base.BaseEntity;

/**
*/
@Table(name="`ys_img_store_second`", catalog="id")
public class YsImgStoreSecond extends BaseEntity<YsImgStoreSecond> {

	private Long id; // 主键ID
	private String asin; // ASIN码
	private String img; // 图片URL
	private Integer state; // 状态，见ENUM
	private Integer status; // 
	private Date createTime; // 
	private Date updateTime; // 

	public Long getId() {
		return id;
	}
	public YsImgStoreSecond setId(Long id) {
		this.id = id;
		return this;
	}
	public String getAsin() {
		return asin;
	}
	public YsImgStoreSecond setAsin(String asin) {
		this.asin = asin;
		return this;
	}
	public String getImg() {
		return img;
	}
	public YsImgStoreSecond setImg(String img) {
		this.img = img;
		return this;
	}
	public Integer getState() {
		return state;
	}
	public YsImgStoreSecond setState(Integer state) {
		this.state = state;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public YsImgStoreSecond setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public YsImgStoreSecond setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public YsImgStoreSecond setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static YsImgStoreSecond ysImgStoreSecond(
		String asin,
		String img,
		Integer state,
		Integer status
			) {
		YsImgStoreSecond entity = new YsImgStoreSecond();
		entity.setAsin(asin);
		entity.setImg(img);
		entity.setState(state);
		entity.setStatus(status);
		return entity;
	}
}